package fr.ece.ing4.inf442.cours2;

public class Counter {
	private int c = 0;

	private boolean initialized = false;

	public void increment() {
		c++;
	}

	public void decrement() {
		c--;
	}

	public int value() {
		return c;
	}

	public void init(int n) {
		c = n;
		initialized = true;
	}

	public boolean isInitialized() {
		return initialized;
	}
}
